package constant

// 用户账号状态
const (
	UserStatusNormal    = 1
	UserStatusFrozen    = 2 // 冻结状态
	UserStatusForbidden = 3 // 禁用
)

var userStatusCN = map[int]string{
	UserStatusNormal:    "正常",
	UserStatusFrozen:    "已冻结",
	UserStatusForbidden: "已禁用",
}

func UserStatusCN(status int) string {
	if str, ok := userStatusCN[status]; ok {
		return str
	}
	return "异常"
}
